package com.reach.redis.utils;

import com.reach.redis.aspect.CacheAspect;
import com.reach.redis.manager.SpringContextUtil;

public class CacheUtils {

	public static void clear(String module,String key) {
		clear(module, null, key, false);
	}

	public static void clear(String module,String event,String key) {
		clear(module, event, key, false);
	}
	
	public static void clear(String module,String event,String key,boolean sync) {
		CacheAspect cacheAspect = (CacheAspect) SpringContextUtil.getBean("cacheAspect");
		cacheAspect.delete(module, key,true);
	}
}
